package com.qianyu.project.mapper;

import com.qianyu.project.entity.ProjectType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Repository
public interface ProjectTypeMapper extends BaseMapper<ProjectType> {

    /*
     * description: 查询所有项目类型名称 <br/>
     * author: ww   <br/>
     * date: 2021年02月06日 0006 <br/>
     * params:  <br/>
     * return:
     */
    @Select("select distinct type_name from project_type")
    List<Map<String, Object>> findProjectName();
}
